package com.usb.serial.device.retrofit;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava3.RxJava3CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

public class RetrofitClient {
    public static Retrofit getRetrofit(String baseUrl) {
        return new Retrofit.Builder()
                .baseUrl(baseUrl)
               /* .addConverterFactory(GsonConverterFactory.create())*/
                .addCallAdapterFactory(RxJava3CallAdapterFactory.create())
                .build();
    }
}